package top.bugger168.content.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 修改课程模型类,只比添加模型多一个id属性
 */
@Data
@ApiModel(value="EditCourseDto", description = "修改课程基本信息")
public class EditCourseDto extends AddCourseDto {
    @NotEmpty(message = "修改课程id不能为空")
    @ApiModelProperty(value = "课程id",required = true)
    private Long id;
}
